import HttpUtil from '@/common/HttpUtil'

const seedlingSizes = {
  findPage (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingSizes/findPage'
    return HttpUtil.postJSON(postUrl, params)
  },
  save (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingSizes/save'
    return HttpUtil.postFile(postUrl, params)
  },
  getInfo (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingSizes/getInfo/' + params.id
    return HttpUtil.get(postUrl, null)
  },
  remove (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingSizes/delete/' + params.id
    return HttpUtil.delete(postUrl, null)
  },
}
export default seedlingSizes;
